﻿using System.Collections.Generic;
using System.Xml.Serialization;

namespace NonLeagueExplorer.Config
{
    [XmlRoot("Config")]
    public class ConfigData
    {
        public ConfigData()
        {
        }

        private List<LeagueData> m_Leagues = null;

        [XmlArray("Leagues"), XmlArrayItem("League", typeof(LeagueData))]
        public List<LeagueData> Leagues
        {
            get 
            {
                if (m_Leagues == null) m_Leagues = new List<LeagueData>();
                return m_Leagues; 
            }
            set { m_Leagues = value; }
        }
    }
}
